home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIISC / LaserWriterIISC.make < prev    next >
Encoding:
Text File  |  1993-09-13  |  7.6 KB  |  224 lines  |  [TEXT/MPS ]

  1. #==============================================================================================
  2. #
  3. #    Make FILE:        LaserWriterIISC.make
  4. #
  5. #    VERSION:            1.0
  6. #
  7. #    COPYRIGHT:        (c) 1992 Apple Computer Inc.
  8. #                        All rights reserved.
  9. #
  10. #    PURPOSE:            This file contains the build commands for the LaserWriterIISC driver.
  11. #
  12. #    9/13/93 - dmh - Updated for the b2 seed.
  13. #    4/26/93 - dmh - Made makefile totally self-supporting for b1 seed.
  14. #
  15. #==============================================================================================
  16.  
  17. #======= Point these variables to your interface and library directories =======
  18.  
  19. GraphicsInterfaces        =    'East Terrace:interfaces & libraries:interfaces:'
  20. GXLibrariesSources        =    'East Terrace:interfaces & libraries:graphics libraries:'
  21.  
  22.  
  23. #========== Directories Containing Source and Object Files ==========
  24.  
  25. Objects                    =    :Objects:
  26. Sources                    =    
  27.  
  28. PrIncludes                = {GraphicsInterfaces}
  29.  
  30.  
  31. #========== Compiler Options ==========
  32.  
  33. AsmOptions                =    -case obj
  34. RezOptions                =    -i {GraphicsInterfaces}
  35. COptions                =    -b2 -i {GraphicsInterfaces}
  36. PrLinkOptions            =    -ra =resSysHeap,resPurgeable
  37.  
  38.  
  39. #========== Printing Manager Dependent Header Files ==========
  40.  
  41. PrintManagerHeaderFiles    =    {PrIncludes}"PrintingManager.h"        ∂
  42.                                     {PrIncludes}"PrintingMessages.h"        ∂
  43.                                     {PrIncludes}"PrintingDrivers.h"        ∂
  44.                                     {PrIncludes}"PrintingExtensions.h"    ∂
  45.                                     {PrIncludes}"Collections.h"            ∂
  46.                                     {PrIncludes}"Messages.h"                ∂
  47.                                     {PrIncludes}"PrintingResTypes.h"        ∂
  48.                                     {PrIncludes}"PrintingErrors.h"        ∂
  49.                                     {PrIncludes}"PrintingResTypes.r"        
  50.  
  51. GraphicsHeaderFiles            =        {GraphicsInterfaces}"graphics routines.h"        ∂
  52.                                     {GraphicsInterfaces}"graphics libraries.h"        ∂
  53.                                     {GraphicsInterfaces}"math routines.h"            
  54.  
  55.  
  56. #========== Files to Link into OldAPI Segment ==========
  57.  
  58. OldAPISegObjs    =    "{Objects}OldAPIMsgJumpTable.a.o"        ∂
  59.                         "{Objects}OldAPIMessageIntf.c.o"            ∂
  60.                         ∂
  61.                         "{Libraries}"Runtime.o
  62.  
  63.  
  64. #========== Files to Link into Universal Message Segment ==========
  65.  
  66. UnivSegObjs        =    "{Objects}UniversalMsgJumpTable.a.o"    ∂
  67.                         "{Objects}LaserSCIntf.c.o"                    ∂
  68.                         "{Objects}SCPrinterStatus.c.o"            ∂
  69.                         "{Objects}UniversalMessageIntf.c.o"        ∂
  70.                         "{Objects}qd library.c.o"                    ∂
  71.                         "{Objects}color library.c.o"                ∂
  72.                         "{Libraries}"Runtime.o                        ∂
  73.                         "{CLibraries}"StdCLib.o
  74.  
  75.  
  76. #========== Files to Link into the Chooser PACK ==========
  77.  
  78. ChooserPackObjs =    "{Objects}ChooserSupport.a.o"                ∂
  79.                         "{Objects}ChooserSupport.c.o"                ∂
  80.                         ∂
  81.                         "{Libraries}Interface.o"
  82.  
  83.  
  84. #========== Files to Link into the Chooser LDEF ==========
  85.  
  86. ChooserLDEFObjs =    "{Objects}ChooserSupport.c.o"                
  87.  
  88.  
  89. #========== Link and Rez Build Statements ==========
  90.  
  91. "LaserWriterIISC"    ƒ    {OldAPISegObjs}                                 ∂
  92.                                         {UnivSegObjs}                                    ∂
  93.                                         {ChooserPackObjs}                                ∂
  94.                                         {ChooserLDEFObjs}                                ∂
  95.                                         "{Sources}LaserWriterIISC.make"            ∂
  96.                                         "{Sources}Resources.r"                        ∂
  97.                                         "{Sources}OldAPIResources.r"                ∂
  98.                                         "{Sources}UniversalMessageResources.r"        
  99.         Echo "Linking LaserWriterIISC"
  100.         Link {UnivSegObjs}                                    ∂
  101.               {PrLinkOptions}                                    ∂
  102.               -rt pdvr=0                                        ∂
  103.               -sg "LaserWriterIISC"                            ∂
  104.               -m SD_UniversalMsgJumpTable                    ∂
  105.               -o "{Objects}LWSC_UnivSeg" 
  106.         Link {OldAPISegObjs}                                    ∂
  107.               {PrLinkOptions}                                    ∂
  108.               -rt pdvr=1                                        ∂
  109.               -sg "LaserWriterIISC"                            ∂
  110.               -m SD_OldAPIMsgJumpTable                        ∂
  111.               -o "{Objects}LWSC_OldAPISeg" 
  112.         Link    {ChooserPackObjs}                                ∂
  113.                 -rt PACK=-4096                                    ∂
  114.                 -sg PrintingPACK                                ∂
  115.                 -m EntryPoint                                    ∂
  116.                 -o "{Objects}LWSC_PACK"
  117.         Link    {ChooserLDEFObjs}                                ∂
  118.                 -w                                                    ∂
  119.                 -rt LDEF=-4096                                    ∂
  120.                 -sg LDEF                                            ∂
  121.                 -m LDEF                                            ∂
  122.                 -o "{Objects}LWSC_LDEF"
  123.         Echo "Rezzing LaserWriterIISC Driver"
  124.         Rez    -rd -i {PrIncludes} -c 'lwsc' -t 'pdvr' -ov -s {Objects} ∂
  125.                 -o "LaserWriterIISC" "{Sources}Resources.r" "{Sources}OldAPIResources.r" ∂
  126.                 "{Sources}UniversalMessageResources.r" "{Sources}ChooserSupport.r" -append
  127.  
  128.  
  129. #========== Assemble Build Statements - OldAPIMsgJumpTable.a ==========
  130.  
  131. "{Objects}OldAPIMsgJumpTable.a.o"    ƒ     "{Sources}OldAPIMsgJumpTable.a"        ∂
  132.                                                     "{Sources}LaserWriterIISC.make"
  133.     Echo "Assembling OldAPIMsgJumpTable.a"
  134.     Asm {AsmOptions} {MakeJumpTable} {Sources}OldAPIMsgJumpTable.a -o {Objects}OldAPIMsgJumpTable.a.o
  135.     
  136.  
  137. #========== Assemble Build Statements - UniversalMsgJumpTable.a ==========
  138.  
  139. "{Objects}UniversalMsgJumpTable.a.o"    ƒ     "{Sources}UniversalMsgJumpTable.a"        ∂
  140.                                                         "{Sources}LaserWriterIISC.make"
  141.     Echo "Assembling UniversalMsgJumpTable.a"
  142.     Asm {AsmOptions} {MakeJumpTable} {Sources}UniversalMsgJumpTable.a -o {Objects}UniversalMsgJumpTable.a.o
  143.     
  144.  
  145. #========== Assemble Build Statements - ChooserSupport.a ==========
  146.  
  147. "{Objects}ChooserSupport.a.o"    ƒ     "{Sources}ChooserSupport.a"        ∂
  148.                                             "{Sources}LaserWriterIISC.make"
  149.     Echo "Assembling ChooserSupport.a"
  150.     Asm {AsmOptions} {MakeJumpTable} {Sources}ChooserSupport.a -o {Objects}ChooserSupport.a.o
  151.     
  152.  
  153. #========== Compile Build Statements - LaserSCIntf.c ==========
  154.  
  155. "{Objects}qd library.c.o"        ƒ {GXLibrariesSources}"qd library.c"
  156.     Echo "compiling qd library.c"
  157.     C {COptions} -o {Objects} {GXLibrariesSources}"qd library.c"
  158.  
  159. "{Objects}color library.c.o"        ƒ {GXLibrariesSources}"color library.c"
  160.     Echo "compiling color library.c"
  161.     C {COptions} -o {Objects} {GXLibrariesSources}"color library.c"
  162.  
  163. "{Objects}LaserSCIntf.c.o"    ƒ    "{Sources}LaserSCIntf.c"            ∂
  164.                                         {PrintManagerHeaderFiles}            ∂
  165.                                         {GraphicsHeaderFiles}                        ∂
  166.                                         "{Sources}LaserWriterIISC.make"    ∂
  167.                                         "{Sources}Resources.h"                 ∂
  168.                                         "{Sources}LaserSCIntf.h"
  169.     Echo "Compiling LaserSCIntf.c"
  170.     C "{Sources}LaserSCIntf.c" -o "{Objects}LaserSCIntf.c.o"  {COptions}
  171.  
  172.  
  173. #========== Compile Build Statements - OldAPIMessageIntf.c ==========
  174.  
  175. "{Objects}OldAPIMessageIntf.c.o"    ƒ    "{Sources}OldAPIMessageIntf.c"    ∂
  176.                                                 {PrintManagerHeaderFiles}            ∂
  177.                                                 {GraphicsHeaderFiles}                        ∂
  178.                                                 "{Sources}LaserWriterIISC.make"    ∂
  179.                                                 "{Sources}Resources.h"                 ∂
  180.                                                 "{Sources}OldAPIMessageIntf.h"
  181.     Echo "Compiling OldAPIMessageIntf.c"
  182.     C "{Sources}OldAPIMessageIntf.c" -o "{Objects}OldAPIMessageIntf.c.o"  {COptions}
  183.  
  184.  
  185. #========== Compile Build Statements - SCPrinterStatus.c ==========
  186.  
  187. "{Objects}SCPrinterStatus.c.o"    ƒ    "{Sources}SCPrinterStatus.c"        ∂
  188.                                                 {PrintManagerHeaderFiles}            ∂
  189.                                                 {GraphicsHeaderFiles}                        ∂
  190.                                                 "{Sources}LaserWriterIISC.make"    ∂
  191.                                                 "{Sources}Resources.h"                 ∂
  192.                                                 "{Sources}LaserSCIntf.h"            ∂
  193.                                                 "{Sources}SCPrinterStatus.h"
  194.     Echo "Compiling SCPrinterStatus.c"
  195.     C "{Sources}SCPrinterStatus.c" -o "{Objects}SCPrinterStatus.c.o"  {COptions}
  196.  
  197.  
  198. #========== Compile Build Statements - UniversalMessageIntf.c ==========
  199.  
  200. "{Objects}UniversalMessageIntf.c.o"    ƒ    "{Sources}UniversalMessageIntf.c"        ∂
  201.                                                     {PrintManagerHeaderFiles}                    ∂
  202.                                                     {GraphicsHeaderFiles}                                ∂
  203.                                                     "{Sources}LaserWriterIISC.make"            ∂
  204.                                                     "{Sources}Resources.h"                         ∂
  205.                                                     "{Sources}LaserSCIntf.h"                    ∂
  206.                                                     "{Sources}SCPrinterStatus.h"                ∂
  207.                                                     "{Sources}UniversalMessageIntf.h"
  208.     Echo "Compiling UniversalMessageIntf.c"
  209.     C "{Sources}UniversalMessageIntf.c" -o "{Objects}UniversalMessageIntf.c.o"  {COptions}
  210.  
  211.  
  212. #========== Compile Build Statements - ChooserSupport.c ==========
  213.  
  214. "{Objects}ChooserSupport.c.o"    ƒ    "{Sources}ChooserSupport.c"        ∂
  215.                                             {PrintManagerHeaderFiles}            ∂
  216.                                             {GraphicsHeaderFiles}                        ∂
  217.                                             "{Sources}LaserWriterIISC.make"    ∂
  218.                                             "{Sources}ChooserSupport.a"         ∂
  219.                                             "{Sources}ChooserSupport.r"             
  220.     Echo "Compiling ChooserSupport.c"
  221.     C "{Sources}ChooserSupport.c" -o "{Objects}ChooserSupport.c.o"  {COptions}
  222.  
  223.  
  224.